﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class EnglishPronunciationDigits
{
    static void Main(string[] args)
    {
        Random rm = new Random();
        int number = rm.Next(0, 999);
        Console.WriteLine(number);
        int units = (number % 10);
        int teen = (number % 100);
        int tens = ((number / 10) % 10);
        int hundreds = ((number / 100) % 10);
        string Steen;
        string Sunits;
        string Stens;
        string Shundreds;
        switch (units)
        {
            case 1: Sunits = "one";
                break;
            case 2: Sunits = "two";
                break;
            case 3: Sunits = "three";
                break;
            case 4: Sunits = "four";
                break;
            case 5: Sunits = "five";
                break;
            case 6: Sunits = "six";
                break;
            case 7: Sunits = "seven";
                break;
            case 8: Sunits = "eight";
                break;
            case 9: Sunits = "nine";
                break;
            default: Sunits = null;
                break;
        }
        switch (teen)
        {
            case 10: Steen = "ten";
                break;
            case 11: Steen = "eleven";
                break;
            case 12: Steen = "twelve";
                break;
            case 13: Steen = "thirteen";
                break;
            case 14: Steen = "fourteen";
                break;
            case 15: Steen = "fifteen";
                break;
            case 16: Steen = "sixteen";
                break;
            case 17: Steen = "seventeen";
                break;
            case 18: Steen = "eighteen";
                break;
            case 19: Steen = "nineteen";
                break;
            default: Steen = null;
                break;
        }
        switch (tens) 
        {
            case 2: Stens = "twenty";
                break;
            case 3: Stens = "thirty";
                break;
            case 4: Stens = "forty";
                break;
            case 5: Stens = "fifty";
                break;
            case 6: Stens = "sixty";
                break;
            case 7: Stens = "seventy";
                break;
            case 8: Stens = "eighty";
                break;
            case 9: Stens = "ninety";
                break;
            default: Stens = null;
                break;
        }
        switch (hundreds) 
        {
            case 1: Shundreds = "one hundred";
                break;
            case 2: Shundreds = "two hundred";
                break;
            case 3: Shundreds = "three hundred";
                break;
            case 4: Shundreds = "four hundred";
                break;
            case 5: Shundreds = "five hundred";
                break;
            case 6: Shundreds = "six hundred";
                break;
            case 7: Shundreds = "seven hundred";
                break;
            case 8: Shundreds = "eight hundred";
                break;
            case 9: Shundreds = "nine hundred";
                break;
            default: Shundreds = null;
                break;
        }
        if ((number != 0) && (number != 100)) 
        {
            if ((teen >= 10) && (teen < 20)) 
            {
                Sunits = null;
                Stens = null;
            }
            Console.WriteLine("{0} {1} {2} {3}",Shundreds, Steen, Stens, Sunits);
        } 
        else if (number == 0) 
        {
            Console.WriteLine("Zero");
        }
        else if (number == 100) 
        {
            Console.WriteLine("Hundred");
        }

        //Console.WriteLine("Hund {0}, Tens {1}, Unit {2}", hundreds, tens, units);
    }
}

